import request from "@/utils/request.js"
export default {
    //判断是否已经收藏
    isCollect(routeId,token){
      return request({
        url: `/route/collect/isCollect/${routeId}/${token}`,
        method: 'get'
      })
    },
    //添加收藏
    collect(routeCollect){
      return request({
        url: `/route/collect/collect`,
        method: 'post',
        data: routeCollect
      })
    },
    //移除收藏
    removeCollect(routeId){
      return request({
        url: `/route/collect/removeCollect/${routeId}`,
        method: 'delete'
      })
    },
    //获取收藏列表
    getCollectList(){
      return request({
        url: `/route/collect/getCollectList`,
        method: 'get'
      })
    }

}